<script module lang="ts">
    import { defineMeta } from "@storybook/addon-svelte-csf";
    import Exception from "./Exception.svelte";
    import { fn } from "storybook/test";

    const { Story } = defineMeta({
        title: "Components/Views/Exception",
        component: Exception,
        tags: ["autodocs"],
        argTypes: {},
        args: {},
    });

    let src = $state("");
</script>

<Story name="Exception403">
    {#snippet template(args)}
        <Exception type="403" />
    {/snippet}
</Story>

<Story name="Exception404">
    {#snippet template(args)}
        <Exception type="404" />
    {/snippet}
</Story>

<Story name="Exception500">
    {#snippet template(args)}
        <Exception type="500" />
    {/snippet}
</Story>

<Story name="Empty">
    {#snippet template(args)}
        <Exception type="empty" />
    {/snippet}
</Story>

<Story name="Fail">
    {#snippet template(args)}
        <Exception type="fail" />
    {/snippet}
</Story>

<Story name="Deny">
    {#snippet template(args)}
        <Exception type="deny" />
    {/snippet}
</Story>
